Update preview box when selection changes