added print button for txt and html documents