adding alert

adding alert to show average to user