Made adding a preference create an activity if it doesn't already exist