register activation and uninstall hooks correctly