add Event, fix some codes in operation