changed code so you can properly see the number of favorites