Added condition with alert view