Hi, and welcome to the Ranch!
When you post code, there are some things you can to do make it easier to read, which in turn makes it more likely someone will be willing and able to help you.
UseCodeTags(←click). I've added them for you in your initial pots.Don't use so much whitespace, and be consistent in how you do use it. A single blank line between methods, or between logical sections within a method is usually sufficient. I've cleaned up some of that for you as well.Use consistent indentation. 2 or 4 spaces, not tabs. I didn't try to touch that hot mess. Post everything needed to demonstrate your problem, and nothing that's not needed. That is, an SSCCE(←click). There's a lot of code there that's not relevant to your problem. Even though it's not clear to me what your actual problem is, I guarantee you don't need all that code to demonstrate it.
I know this may sound like I'm just nitpicking unimportant stuff instead of helping you, but believe me, clearly and precisely communicating your problem so that it's easy for folks here to understand it is paramount if you want help.
So, can you explain a bit more clearly what you're having trouble with, and provide a more concise code sample to demonstrate it?