can now set window size at initialization