Fixes on controller_viewproduct.php for optimization