Add alert after unregister and change register key