Mimics Rails controller and view of the MVC