hg-click function added