working on sending data to and from browser