Trying to move stuff to templating.. Doesn't give wanted effect...