copy_form function

Make a copy of an existing form