Added handling to update selects automatically after the collection is changed