implemented html handler