layout the index