added pdf viewer and single template