     (let [url (get db :url-text)]
       (if (string/blank? url)
         (do
-          (js/alert "Please enter the url of your javascript file to be loaded")
+          (rf/dispatch [:alert "Blank Field Error" "Please enter the url of your JavaScript file to be loaded"])
           db)
         (do
           (load-script url

    (let [{:keys [externed-namespaces namespace-text]} db]
      (if (string/blank? namespace-text)
        (do
          (js/alert "Please enter a namespace to generate an extern")
          db)
        (do
          (rf/dispatch [:namespace-text-change ""])

                                               namespace-text (extract namespace-text)))
            (catch js/Error e
              (.error js/console e)
              (rf/dispatch [:alert "Error generating extern" (error-string e)])
              db)))))))

(rf/register-handler
