Refactor dashboard_index_view