modal changes css and tpl