added code to attach document to ticket