Add a view event to BookView that calls the buy function when the user clicks the button.