complete overhaul of ui code started; more to come