refactor backend menus variables