updated to use ui-depth.