Adding control, view and model for the Mainwindow.