adding logic for menu text change for mobile