revise html for titles