First, format your code in here so that is it possible for others to help you. It is very hard for us to tell what is what when the text formatter jumbles everything like that.
You can use the </> button like this… How to format your code in forum posts
OR… Here is an example of how to fix it from the site FAQ Page. How to help us help you - or How to ask a good question.