Dispose after auto-removal.
Move cancelHide function.