                   <button type="button" className="secret-button" onClick={@setPlaying.bind this, true}>
                     <i className="fa fa-play fa-fw"></i>
                   </button>}
-              </span>
-            </span>
+              </span>}
+          </span>
       when 'video'
         <span className="subject-video-controls">
           <span className="subject-frame-play-controls">

  setInFlipbookMode: (inFlipbookMode) ->
    @setState {inFlipbookMode}

  setPlaying: (playing) ->
    @setState {playing}
    if playing
      @nextFrame()
      @_playingInterval = setInterval @nextFrame, @props.playFrameDuration


    tools = switch type
      when 'image'
        if not @state.inFlipbookMode or @props.subject?.locations.length < 2 or subjectHasMixedLocationTypes @props.subject
          if @props.allowFlipbook and @props.allowSeparateFrames
            <button className="flipbook-toggle" onClick={@toggleInFlipbookMode}>
              <i className={"fa fa-fw " + if @state.inFlipbookMode then "fa-th-large" else "fa-film"}></i>
            </button>
        else
          <span class="tools">
            {if @props.allowFlipbook and @props.allowSeparateFrames
