added login and gui
added new thread