modifying expandable menu to use the same variables as side menu