Revert "Revert "Fixed case events (functions working again!!) - case colors - add document deadline""

This reverts commit 22644151d0658fb24552ba9ea20c0b659517836f.