Smart pagination and  some optimisation in hacks controller, have been done