implement MVC pattern for App

continue implement MVC pattern