Need more testing and to complete the global events
Added global onChange and more tests