Added before action for menu varibles