added option to control plugin action button