Before digging into your code, there are several pieces of information that you need to provide:
- What kind of things are you asking about?
- What did you do before getting the result?
- What is your expectation?
- How is it behave that away from your expectation?
- Is there any logs or screenshots that show the problem?
Also, I would highly recommend changing the title of your post to words that is much more clear-cut and specific.