You did not post enough code that we can answer your question. Post all of your code.