improve performance of test plan page

also get ready for the expanding table feature.