add error output to gui