add version and buttons to the whole system.
add callback for switch
rotation works fine
cleaned up a bit of stuff