updates index layoutand created template