replace ugly debounce logic with watching the name