alerting function present for clicking separate badges to users