mainwindow added, skip login macro added