made some fixes to the product controller