added delete function to admin panel