Catch alert box buttons