only the EventListerners should trigger isOnline.
if you want to change this.online chancge it directly