made some changes to updateref web version to fix a bug