Added alert view and "selfie function"