close advanced search form and don't submit unused fields