trying to get a controller from a dom element that I just put a tempalate into