handles activation/deactivation

added event Activated
added event Deactived
added property IsActive