Updated the view and template

Added better error control.  If an error occurs during coping, the
transactions are rolled back.