Fixed so overlay is not toggled on unload, but removed