advanced search takes criteria of current view