toggle navigation bar visibility fix