worked on linking element to template

not finished yet