add snippet for alert view