moved some ui functionality into the scene graph