moved renderReport method to pluginController which is a much better place