Thanks to all men!

I will try with one of the different solutions that you seggested me.
I was sure that there was something wrong with my current implementation.