Alert dialog implemented.