added isMoving handler to pop