Add pagenation fuction and styles