adding ajax flags