use existing attr name 'selected' for selections

Fixes #1303