add repeat directive to proper element
change states format
remove repeat from directive
filter list of states as data is placed in the input