added 'loaded' to the template binding, so you can get notified when the template is loaded