two-way binding to `selected` working