Updated pushing new books to array and clearing page to prevent duplication