Setup of model view and controller.