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

This reverts commit d4577c831612e7bcabd7f1984baced0961a20f17.