implement token input. existing tags not working