mobile nav fix

@benbalter there is an issue with the navigation on mobile devices.
This fixes that. Should take a look and merge ASAP.