window.clear() replaces with window.erase()
Implemented warning window showing and removing