switch between main and login window