new function to extract tokens from target string
update select target dialog handling target values separate