Cleaning layouts and updating scripts