A function is needed to monitor if you are at the bottom of the pdf and then set the button to be clickable.