serious bugfix when deleting Work
improvements and fixes with teacher change