Refactoring variables in class menu_side