make #mod and #selected separate components

closes #1. `#selected` should also eventually be cross-browser.