Improved single product page controller logic