Smarter UI. Detects window resizing.