finished dialog resizing