implemented activate/de-activate functionality thanks to Damian, Sylvain, and the stupid rookie.