move debug info into a component
move display stuff into component