         if deck
           flag = true
           break
-      if flag and @state.title.length > 0
-        saveDisable = false
-      else
-        saveDisable = true
+      saveDisable = true
+      preDisable = true
+      if flag
+        preDisable = false
+        if @state.title.length > 0
+          saveDisable = false
       @setState
         deckChecked: deckChecked
         saveDisable: saveDisable
+        preDisable: preDisable
+        showPre: false
   render: ->
     <div className='tab-container'>
       <Button bsSize='small'

  getInitialState: ->
    title: ''
    saveDisable: true
    tags: []
    deckChecked: [false, false, false, false]
    showPre: false

      </Panel>
      <div style={display: 'flex'}>
        <Button bsSize='small'
                disabled={@state.preDisable}
                onClick={@handlePreClick}
                style={width: '50%'}>
          {__ 'Preview'}
