added myFavorites as condition for back button. If myFavorites is in url it will return to myFavorites page