updated smooth scroll to include the title in navbar