Created index method and layout