Add advanced search options flag and toggle button