Pointing templates to layout