Adding class in the common pagination section