onExit dialog added