before alert view