Update controls when active layer changed
This will also trigger when new layers were added. To make this work
I had to unbreak a subscribe/unsubscribe circle of the BeforeChangeLayer
event. I am not 100% sure that this did not break any edge cases so I
commented the lines instead of removing them.