Decoupling Preferences window. 

Moved logic out of view (preferences window) and created separated XIB for it.