added login window/button
moved dialog's close method