several fixes and changes to case details

*Case details not completed—but several bug fixes included