handle delete, change and add files