Adapter classes are reorganized.
Made some little changes but no fix found for pagination problem.