fixing overlays remaining when clicking new