made the navigationbar non translucent and assign the visibility of the navigationbar/toolbar correctly.