Fixed bugs for plugins and buttons

All buttons are working properly