adding advanced search functionality

adding advanced search functionality