add self into html template