added delete functionality to admin panel