Modified disappear script functionality