Made error message an alert view