make enter work even if ajax requests are failing