turned html into template