Added code for add/edit events