working on plugin save event