Update copy_view_to_another.groovy

Bug fixes