adding detail and delete