Changed process when alert button pressed.