fixed id bug, also pages are highlighted, which closes #8