bug fixes and enhancements to javascript and UI.
Added dynamic CSS classes for table rows.