First refactoring - removed presentation from index.php into a layout file