updated layout templated