added onEnable method for convenience