updated  swap desk function to diplay results on the dash board