added an option to reset a counter in the ui