removing window frame at the end;