changes to navigate.js