Debug list index and list edit pages
Remove dead code