Yes, I made the edits and mentioned the changes.
I’ve resolved the issue, so you don’t need to waste any more of your time on this. 
If I may suggest for the future:
1) Reduce the code to minimum what demonstrates the problem. Usually you find the problem yourself while doing this,
2) Then post the
whole code(1 and 2 are important combined - if you don't reduce to minimum, posting it all is too much. But not posting it all leads to the problem being outside of what you posted, hence useless.)
3) Post it as text, e.g. using the code tag, not as screen capture
4) Feel free to edit to fix typos in your
message, not the code. By all means edit to add ancillary information - but the code is important as-is.