dialog box and max avaiable quantities complete