workaround for using debounce so that enter button triggering both event handlers isn't an issue