Use one main form and forms per table
Better ruby style and refactorings