fixed bug with sendbox not going away and removed unused code