register deactivation hook