created a method to update the plugin