Added functionality to update the state of advanced search options