factories index, fix the search contorl