Added recycle method to pdf viewer