added html mode.