adding handler for dynamic selects