connecting UI to values from server