moved invocations of onStart/onStop events to GrettyPlugin