move modal template to separate file