Changed Preferences to a grid layout