autosuggest - updateinputvalue change the input value if the newvalue is not equal the old value
entity unchecking at the beginning and update entity list after every checking/unchecking

some code style