move templates outside of the html