Added controls to template (not working yet)