move the logic of load books to appdelegate