added depth sort and partial model view.