cleaned up code style, debounced button3