The Webserver currently has all buttons of the same colour. Make it customizable such that it is more easily recognizable.
Also give the user the ability to place the buttons on whichever cell of the 32 the user prefers, instead of having it at the start followed by the dummy buttons.
Suggestions
The action_map dictionary can have the function, the colour and the locations, which can be used by the HTML to give color to a button.
When the device is used in landscape, change the grid direction. otherwise, there positions of the buttons will shift.