Fix column resize in fields grid, add sorting, reduce margins