improve init/login dialog size
improve hide/show main window