Debounce function for button added