handle custom pages