added tmpl library and modal