Mattias, I can see that you have rewritten lot of the code, but from scratch....
It’s of cause just by coincident controls on the front panel have the same pixel coordinates, e.g. like this:
..or that the connector pane are almost identical, e.g. like this:
Cheers,
Mikael