Dismiss viewController when alarm is set