 
       (do
         (.modal ($ :#iModal) "hide")
-        (ajax "/api/actions" "POST" data #(create-new-email-action-callback data %))))))
+        (ajax "/api/actions" "POST" data 
+              (wrap-error-alert #(create-new-email-action-callback data %)))))))
 
 
 (defn test-new-email-action [project-id]

            :async false
            :success callback}))

(defn send-new-project-request []
  (let [name (.-value (.getElementById js/document "project-name-input"))]
    (if (= "" name)

         (= "" email-body))
      (js/alert "Wrong data! Check out fields!")

      (ajax "/api/actions/test" "POST" data 
            (wrap-error-alert (fn [e]))))))


(defn common-update-callback [msg data reply]
