moved html to templates