refactored favorites view controller for save/load functionality