factoring prepareTableView
some refactoring. code transfert from MainWindow to RegistrationWidget.
fixing column width in registration view