Add update rating functionality