fix the dashboard bugs