update of template layout