Initial dialogue window

When logging out/closing connection the program now switches between the
two windows using their points so set the next window.