Added gesture recognizer to resign the keyboard on tap