Almost working with frontend
Events being sent to webpage