merge model view and controller