updating index layout