Fixed Navbar issue for iPad

previous fix only worked for mobile phones due to screen size
differences