add deleting and pdf browsing function