pages button: fix handler