Add deactivate handler