add alert if groups number is zero