Refactor ObjectDialog into a tab panel