Add index and setter for favorites