pagination working and styled