cleanup of uploading page