open html function