template and layout work