finished alert implementation