added favorites page functionality