Fix table views

The old view was too bloated and there were too many unnecessary templates.

The new version is leaner and easier to work with.