pass the current value of the entry text box into the completion function