add advanced search function for user interface