added debug to view end page text