Merge changes I5e500724,I40cfb12c into nyc-dev

* changes:
  Restrict selection to 1000 items in DocumentsUI.
  Cancel band selection on directory change.