migrate the document list modals to $modal service