added pdf preview