CMS-2165 Make InputOccurrenceView dragable
Moved call to refreshOccurrenceViews into sortOccurrences
Refactoring for more readability