okAction and cancelAction defined for Amitesh's effects