refactor BookDetailViewController to save unnecessary searching and comparing