refactor list_dashboards