Debounce refactor: remove double clicks problem