fixed errors at top of layout.html