Added conviction transition on open/closing of case. doPost method doesn't need to define tables. I also added a refresh to the doPost actions -> now it refreshes at the correct time

(at least for the doPost actions for a case).