Error handling addet to GUI