added index option for layout menu