Open a document in the connection dialog by double-clicking on it
Rename some wrong or misleading variable names