add send data routine to main app