logic on html page complete
update