Dismiss view controller after set alarm is pressed