added pdf view component
#113 code refactoring after review