implemented favourite functionality