added debugging to page