Add document search functionality to modal