making the application follow MVC with fragment as controller