replaced old check events gui with new