added automatic window resizing