Better resizing of widgets