added methods to searchcontroller for advanced search