unregisterPane when it's being destroyed, showAnimation allow undefined to do default animation