GUI update

Split loggin and maingui