Set size of window in one place