update book, better logic for displaying form