add erase method & view another window