add smooth class to heading function