added detail and delete to admin