[REF] Refactor visualizer: add layout.
[BUG] Wait until GUI is ready