added state filter to search