more helper functions - UIResponder stuff