refactoring + init menu