Added onRenderModeChange event
Missing phpDoc
Forgotten return
After render<Method> if previous was not set it was set as default