working sending data to front