converted html into templates