Fixed the navigation bar problems

It wasn't hiding or showing predictably. We fixed it!