adds model, view and controller