Refactor statistics detail panel

Major change was using event listeners to update the panel rather than passing panels to several files. Additional cleanup was also performed.