New function redraw in window