now the event handler for got_online and got_offline is attached in parent class