Add buttons event listener.