Universal pagination function create and used by all backend also css tweaks to home page