moving layout to main.html