fixed errors and added changes to smooth scroll navigation