ts() fixes for labels in case activity popup, and minor fixes to code format.
Merge pull request #468 from mlutfy/fix-43-case-ts

ts() fixes for labels in case activity popup, + minor fixes to code format.