add layout and template