helper functions: hideKeyboard and find first responder