Added refresh method to allow re-initializing of the plugin