set proper window size