proper pagination when no js present