preferences added to activity and note