Add main function and alert view subclass