add 'no results' msg to view.
fix JS error.