added an int[] and a reference number to save the selected cards in the book
added more events for saving/calling data