added event check for the font gui