Changes to the plugin to on activity result