Save tmp file name as remote_path to avoid confilicts. Set view name with remote_path. Clear tmp file when view closed.