move dom creator to utils object