removed code that messes with the navigation bar visibility, dont see any advantage of that approach