clear the window first.