find index via value. Changed model so that it holds a value of type id since they won't always be numbers