set online status after connect