quick refactor of adding menus.