added feature to add and delete file attachment