changes to dashboard JS file to hide empty divs