added onHeadingClick callback