- [compound] changed to support onDetails.