index and layout