sending evnets one time with state to frontend