windows are cleared and redraw on update call