added event handlers for option clicks in product detail view