added getBook function from libFactory to editBookController