use new index constant in the search and use index object to construct form