 
      [comps/Blocker {:banner (:blocker @state)}]
      [:div {:style {:padding "0em 2em"}}
-      (render-top-bar config)
+      (render-top-bar-method config)
       [:div {:style {:padding "1em 0em"}}
        (render-side-bar state refs config editing? props)
        (when-not editing?

                     (swap! state assoc :loaded-method (get-parsed-response))
                     (swap! state assoc :error status-text)))}))})

(defn- render-top-bar [config]
  [MethodDetailsViewer
   {:name (get-in config ["methodRepoMethod" "methodName"])
    :namespace (get-in config ["methodRepoMethod" "methodNamespace"])
    :snapshotId (get-in config ["methodRepoMethod" "methodVersion"])
    :config config
    }])


(defn- render-side-bar [state refs config editing? props]

     (.addEventListener js/window "scroll" (.-onScrollHandler this)))
   :component-will-unmount
   (fn [{:keys [this]}]
     (.removeEventListener js/window "scroll" (.-onScrollHandler this)))})