added activate and deactivate rule api