update preferences, restore datepicker