added a snippet to build a on-page navigaton