MVC pattern based terminal application framework