fixed mobile navbar

screwed it up with the last change but this one will make it work correctly once again.