Split DialogBox and table. Needs some work