update showPage helper