Fixed issue with next button not having disabled class when there is only one page