Activate subwindow when selecting file to open
Move connection class to a new common module