Move more controller code from views to app, little refactorings
Implement correct presentation for textual table