saving book ids to selection