adding a template and a first layout