add event when the user want to modify the component