corrected getPage for tabs