added bug fixes for plugins and views