change depreciated Html class to the new Html class