adding alert view (iOS only)