preferences window dipslays properly
loading settings to preferences