Cleaning layout and upload