adding debugging to pages