fixed problems with view PDF