add viewer sample