Removing deleted files and updating layouts