added html mode