init MVC style code