added error methods
include back error method to TbHtml + minor changes