         fileDropView.delegate = self;
         
         showProgress(false);
+        loadDefault();
         checkCopyButtonVisibility();
-    }
-    
-    override func viewDidAppear() {
-        loadDefault();
     }
     
     func loadDefault() {

            seletedAlgorithmIndex = 0;
        }
        hashAlgorithmComboBox.selectItemAtIndex(seletedAlgorithmIndex);

        if(tabIndex == 1) {
            sourceStringView.becomeFirstResponder();
        } else {
            fileView.becomeFirstResponder();
        }
    }
    
    func checkCopyButtonVisibility() {

        defaults.setInteger(outputFormatRadio.selectedRow, forKey: DEFAULT_OUTPUT_FORMAT_INDEX_KEY);
    }
    
    func tabView(tabView: NSTabView, didSelectTabViewItem tabViewItem: NSTabViewItem?) {
        let identify:String = tabViewItem!.identifier as String;
        let defaults = NSUserDefaults.standardUserDefaults();
        let tabIndex:Int = identify == "1" ? 0 : 1;
        defaults.setInteger(tabIndex, forKey: DEFAULT_TAB_INDEX_KEY);
        refreshAlgorithmComboBox(tabIndex);
    }
    
    func refreshAlgorithmComboBox(tab:Int) {
