prevent reload when pressing enter after query