Fixed js issue for filter box not closing after a filter selection.
Moved validation checks for model index records to the modelIndex view so that when there are no records it should hide the body div element.