Added redrawing when window resizes