Started code for opening Preferences window