Differntiate between adding and editing events