added delete function to dashboard.