Moved some HTML code to template
Less code in find_replace_templatesets