latest working code for plugincheck ui