changing the template to receive a book id