Introduce the use of controllers and move HTML to View