fixed bug and added plugin toggle in backend