         (map-indexed repo-button state)))))  
 
 ;; {:auth - :repo -}
-(defn repo-config-panel [state onwer]
+(defn repo-config-panel [state owner]
   (reify
     om/IInitState
     (init-state [_]

       :auth (.get (Cookies. js/document) "session_id")})

    om/IRenderState
    (render-state [this state]
      (let [repos (vec (get-in state [:me "repos"]))]  
        (dom/div nil
          (om/build repo-list-view repos)
          (om/build repo-detail-view {:repos (:me state)
                                      :auth (:auth state)}))))))                                       

(om/root widget app-state {:target (.getElementById js/document "content")})

      (let [current-index (nth (om/observe owner (current-index-cur)) 0)
            repos (:repos state)]    
        (if (< current-index (count repos))
          (om/build repo-config-panel {:repo (nth repos current-index) 
                                       :auth (:auth state)})                              
          (dom/h2 nil "Add your repos"))))))

