Added pagination function to /mybooks