 
 
     view: () ->
-        ctrl = @tabCtrl
+        console.log("type of vfform:", typeof @vfform)
+        ctrl = @tabCtrl # Need to fix this so that it goes back within the controller or model @___@
         tabOptions = {
             flavor: 'bs/nav-tabs'
             tabs: [

                ])
            ])

        renderSubmit = (ctrl) ->
            return m('div', {class: 'tab-content'}, [
                m('div', {class: 'tab-pane active', id: 'gene-search-querygenes'}, [
                    m('div', {class: 'panel-group genes-search', id: 'accordian'}, [

                when 'submit' then return renderSubmit(ctrl)
                else return m('h1', @activeTab())

        renderGeneForm = (ctrl) =>
            return m('div', {class: 'tab-content'}, [
                m('div', {class: 'tab-pane active', id: 'gene-search-querygenes'}, [
                    m('div', {class: 'panel-group genes-search', id: 'accordian'}, [
                        @vfform.view()
                        @amrform.view()
                    ])
                ])
            ])

        renderGenomeSearch = (ctrl) =>
            return m('div', {class: 'tab-content'}, [
                m('div', {class: 'tab-pane active', id: 'gene-search-querygenes'}, [
                    m('div', {class: 'panel-group genes-search', id: 'accordian'}, [
