Separated the creation of the view and the data in it to respect the MVC
design