added check to hide main nav for ipad