gui next part, synchronization setup, refactor