added function to hide keyboard on tap