Added view and renamed main.html into layout.html