refactor menu view