Change Flow of UI

- Extract some methods for refactoring in TableUI
- Move unused code in TableUI
- Mark parts of TableUI Code with author tags