added main app model, view and controller