added logging, added partials to layout