almost done
fix templates html_code