I need some help in coding

I want to improve the graphics on cockpit with some buttons.
Buttons especially for TMC on/off - Mute and OverViewMode

Functions are working and the new buttons are shown in cockpit, but I cannot disable them via settings men�. Settings for on/off are available but do not do anything. Buttons are always visiable in Cockpit.
Any hint for me?

Use PAL version - no skin as fare default skin

Spoiler: Orignal morco_button.ui

Code:
Please Login or Register to see the links

Spoiler: Orignal morco_button.lua

Code:
Please Login or Register to see the links

Spoiler: Orignal morco_button.css

Code:
Please Login or Register to see the links


Here is my code.

Spoiler: My morco_button.ui

Code:
Please Login or Register to see the links

Spoiler: My morco_button.lua

Code:
Please Login or Register to see the links


Spoiler: Pictures

[Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ]