It would be helpful to be more specific and concrete. Provide some actual code that shows what you have, and maybe with that you can explain what you want.