implement loader for dashboard