add the click counte function