Added onEnable and onDisable method.
Added onEnable and onDisable method.