save rename and topmost when closing soft