Preferences window working and Icon added