fixed link structure layout.js and index.js