hide overlay iff it has not been hidden