Move unit filtering out of template
Use CSS to apply table formatting
Add page for each unit