Nav links working now. Improved code