add success handling to confirm and unlock