added onEnable and onDisable methods to base class