index fuction seems to work...? bookPage function not working yet.