add logView, logDownload function