Improve showing/hiding navbar