added an event handler to catch the modifications in the project