move nav click handler to main.js remove bloated html