implement OnViewLog button