Added modal for advanced searches

Added a modal to construct advanced search queries.