Add wait for ajax gif to disappear