factored out layout partials
completed layout and routes