update window size
draw surface