abstracting menus and fixing css