Case templates cleanup

- modal removed
- if conditions removed
- javascripts removed