Handling confirmation through an event/callback