Remove the unneeded code to manage search bar visibility, since it is correctly hidden now. Also, clean up some UI code.