modified layout to include messages, header and errors partials