graphing error when no pages exist, show message instead of error