Renaming and correcting $currPage