refactored dashboardScaffold to handle invisible components