implementation on enable/disable plugin