add layout index