I can say that you didn't use code tags, a descriptive title - basically that you didn't read the
Posting Guidelines before throwing your code up.
Try reading those and doing ask they ask. If you want to post to a forum, you need to follow the rules.
PS - as you have posted full code (once again, against the Posting Guidelines), I'm going to snip it. Please respond in this thread following the Posting Guidelines. Thanks.