refactoring: use menu resources instead of code