adding trade widget markup and functionality