make an index when click expand button (fist time only)