putting link switching in main.js