         stingNumberLabel.text = "Sting \(stingIndex + 1)"
         updateLabels()
         
-        // refresh playlists in case anything has changed
-        engine.ipod.refreshPlaylists()
-    }
-    
-    override func viewDidAppear(_ animated: Bool) {
-        // get waveform view positions
-        let waveformFrame = waveformLoadingImageView.frame
-        
-        waveformView = FDWaveformView(frame: waveformFrame)
+        waveformView = FDWaveformView(frame: waveformLoadingImageView.frame)
         waveformView.doesAllowScrubbing = true
         waveformView.doesAllowScrubbing = true
         waveformView.doesAllowScroll = false

    }
    
    func waveformViewDidRender(_ waveform: FDWaveformView) {
        waveformLoadingImageView.removeFromSuperview()
    }
    
    func waveformDidEndScrubbing(_ waveformView: FDWaveformView) {

        updateLabels()
        
        // add wave loading image whilst waveform generates
        waveformLoadingImageView.isHidden = false
        
        // generate new waveform
        updateWaveURL()
