Added some style changes to the menu and fixed a bug in the submenu generator.