Add debouncing

Debouncing is needed after a button is being clicked