                     
                     // within range of center container
                     if currentYOffset.constant > (verticalSnapThresholdFraction * -view.frame.size.height) {
-                        showContainer(.Center)
+                        showEmbeddedView(.Center)
                     }
                         
                         // within range of bottom container
                     else if currentYOffset.constant < ((1.0 - verticalSnapThresholdFraction) * -view.frame.size.height) {
-                        showContainer(.Bottom)
+                        showEmbeddedView(.Bottom)
                     }
                         
                         // center region: depends on inertia direction

                    
                    // within range of center container
                    if currentXOffset.constant < (horizontalSnapThresholdFraction * view.frame.size.width) {
                        showContainer(.Center)
                    }
                        
                        // within range of left container
                    else if currentXOffset.constant > ((1.0 - horizontalSnapThresholdFraction) * view.frame.size.width) {
                        showContainer(.Left)
                    }
                        
                        // center region: depends on inertia direction
                    else {
                        // pulled right
                        if previousNonZeroDirectionChange.dx > 0.0 {
                            showContainer(.Left)
                        }
                            
                            // pulled left
                        else {
                            showContainer(.Center)
                        }
                    }
                }

    }
    
    func onDone(sender: AnyObject) {
        showEmbeddedView(.Center)
    }
    
    func onshowEmbeddedView(position: Position, sender: AnyObject) {
        showEmbeddedView(position)
    }
    
    // MARK: - Pan Gestures
