Fix loadPage/deprecated modAction v2

Same purpose as #476, probably easier to merge and with a few more fixes