adding debounce time for the button