removed function from loop
load linked templates only for first level