moved error to dom