better window sizing and positioning