changed sizing dialog into widget