deleting classes now works and updates the list view