update window height and width