refactor dom_name, finish edit of character