adjust layout for index