fix minor bugs
fix &amp; instead of & in templates
fix duplicate ID error in HTML