adding ajax loading waiting stuff