implemented logic for remote update and rename events