added next previous functionality

added the code to get next chapter and book and all that