implemented tap recognizer to dismiss keyboard