moved gui to window class