created nav focusing functions in main.js