disable event deleting and editing while in production