split up html to templates