Refactored table view and fixed a initial table resizing.