added preferences to a popover