now automatically hides cancel button in search bar