move require statements to more sensible location
refactor menus