Setting Preferences in Layout