adds the functionality to the book edit page