client: destroy ui function