add error handling for unlock and confirm views