merge structure of controller to sitePlugin from mdSite

similiar to last commit