Made it so the popover will work with several books