2 lines of code added to add support for change event