Refactoring dataprocessor and excelcontrol