adjust index layout