Added pagination to navigation.