modify viewer helper