Added resignFirstResponder to allow for easy closing of the on-screen keyboard