added functionality of rating and favorites