Refactor somewhat and make sure that totaltime are updated right after dragdrop for subreport