beginning of ui work