fixing modal templates for minifying