improve upload resource dialog