Added a common block callback called when any button is tapped (except cancel)