Added pagination for class explorer and refactored class explorer.