update model in selectionChange