How to modify a scheduled event