hook for sizing of the window