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