You can easily create an array listing your attributes and to create UI with a Loop. This is clean, optimized, fast and will create to you some holidays :D
of course i do build the menues with loops and arrays. ;) your solution works already in my script, just gotta fix some logic problems and i'm done. one more time thanks for your input. just sad there is no state or command in mel to get this behaviour automatic.