allow navbar to close on touch devices. fixes #30
more mobile navbar fixes
improve navigation performance