[layout] renamed spaceIndex to index and fixed link