add views and controller to engine