add callback function to rule details