refactor ui to various menus