                             (om/update! programmes :selected nil))
                 ;; TODO: Add Error Handler
                 :headers {"Accept" "application/edn"}
-                :response-format :text})
-          (println "Not fetching programmes!"))
+                :response-format :text}))
 
         ;; handle selection on programmes table (this should be nil if called)
         (om/update! programmes :selected (:programmes active-components))))

                  ;; FIXME: This should be application/edn
                  :headers {"Accept" "application/json"}
                  :response-format :json
                  :keywords? true}))
          (println "Not fetching sensors!"))
        (om/update! sensors :device-id new-device-id)

        ;; handle selection in sensors table

      (let [{:keys [sensors active-components]} data
            new-device-id                       (:devices active-components)
            property-id                         (:properties active-components)]

        ;; handle selection perties table
        (when-not new-device-id
