Update to use new theme parameters in onEnabled

This update is from issue #27 : "Error on parameters passed to onEnabled in applyTheme function"