add depth range limit and update drag and drop