writing client gui