delete function added + admin delete