Moved onCreate options to markupLoaded event so that they can be made to cleanly survive a template reload.