better way to set initial window size