a little ui cleanup and debugging