adding ajax calls