move modal text from the javascript to the template