fix copying to outgoing folders (by avoiding Ruby calls after page load)