Add some functions to the book controller