split the app in simple way of MVC implementation