Added option to specify if pagination shown for one page