add html watch function