add the document upload thing through ajax call