modifying the buttons document