fixed namespaces in layout.js