added buttons and attached event listener to perform modifications