onRegistrationCancel optional protocol implemented