change the index layout