fixed issue with deleting
fixed sending to pdf