Add function for hiding the ios keyboard on search