Implement better oprion for tabletlayout