updated initial and minimal window size