ADD: pdf preview
FIX: crash bug in setting view