change document upload classes to services