import-export sub pages modeled for automate and control

Also tweaked handle_popup() so default is not to cancel dialog