Split the main.html/layout into sub templates