catch exception to gracefully handle invalid pages