implement MVC into plugin