Various functions in dashboard.