changed selectedItem to highlight
checking if already rated product, changed method names, optimized code