added buttons and event listener