added debounce to demo