update on html

create event functions