change Controller to Plugin