Added PreferenceDialog class and use it for the dialogs to set the kml export column and the number of rows in the log view