Added UIEvent class