added the adding favorites functionality