calendar code

added support to modify and delete existing events by id