lazy make an index (first time only when click expand button)