[Bug Fix] Able to flip to next page even if there is no more jobs

It seems that the buttons are still clickable even if the class "disabled" is toggled on. Added checks to handle that and fixed the typo in the code.