hide closed form of overlay properly