click event and group counts