Moved gui to lib