added layout and changed main.html for yield