make an index when click expand button