hooked up modal template to model