Search controller is aware if its in a navigation bar and hides/shows other buttons. Assumes search bar is title.