Creating a timed loop to show main windows

@Sanderd17 I did try to use the timer component but one timer interfered with the other. Tried to synchronize them but eventually I found they interfered with each other.