smooth scroll and page animation, plus other tweaks