Adding and editing events implemented