implementation on click (print command), doubleclick (execute command) autocomplete functionality