refactor html import utility.