Refactored MainFormHandler, changed logic of preloading data into the table model.