Updated smooth scroll and fixed bug