Agree, it is a simple enough matter.
Please post your code, or a smaller similar example showing how your current concept is interfering with the desired behaviour.
Because there's as many ways to do it wrong as there are ways to do it differently, so give us a lot at what you've managed to do sofar.
a7