Made front- and back layers use same array
Improved menu-handling

Made front-and back layers use same array
Moved layout-functions from menu_main to menu