Changed order of buttons in the GUI

Laptop mode before tablet mode, and normal and inverted orientation
before left and right orientation, feels more natural. The order of
methods in the code were changed according to a similar logic.