Adding model to hold selected values

Fixes #1