Added loading (spin) during operations
Fixed updating of patient
Fixed bug in template
Fixed bug in creating table for exams