Replacing buttons with anchor tags for smooth scrolling