added book details functionality