add handler to html