change the method of control button to make the plugin work with several...

... object