change the navigation bar and the enable sliding of the head