if frame is not visible, visible it. If close a frame, hide it instead of disposing it.