window resizing handling
small adjustments