applied onClick listener to the counts in the action bar