Add event action for deleting buffer