added an option for hiding window after logged in