Emiting data to front end