add callback for removeFromStack