change response to json and modify user event