added [un]archive functions for dashboard.