add onEnable and onDisable methods