Added document viewed action.