added xml preview code from master branch
fixes the long standing view pager rendering bug. fixes #72