made Gui global pointer available to check.c only