incorporating embedded viewer into template