cleaning up the controller, drawing the line where HTTP is handled, cleaning up the views accordingly