Scan form saving logic