Smarter allocation of space for the table view. Related to #191