add ajax to the index search