update to support setHTML API call