refactoring menu resources