Client update

add func to client and gui