added a tweak for label graphics. cleaned up UI code.