fixing something...
add selected status into tmpData
merge