Simplified layout logic, reorganized elements
Rewrote footer handling to better handle truncation, and use `ActiveModel` to return the (stylized) active model