added "edit event" functionality