added renderVithError to View lib