Add tag index layout code